package com.itcast.arrays;

import java.util.Arrays;

/*
    字符串为何可以直接排序
 */
public class Test9 {

    public static void main(String[] args) {
        String[] arr = {"abc", "aac", "aba", "bac", "bca"};

        Arrays.sort(arr);

        System.out.println(Arrays.toString(arr));
    }
}
